home *** CD-ROM | disk | FTP | other *** search
/ F1 Licenseware / F1 Licenseware - Volume 1.iso / disks / 049a.dms / 049a.adf / articles / nudge.asc < prev    next >
Text File  |  1993-09-09  |  3KB  |  108 lines

  1.  
  2.                            NUDGE NUDGE  WINK WINK!
  3.                           +-----------------------+
  4. @1
  5. RAM IT HOME:
  6. -----------
  7. If you intend to make use of the RAM DISK inside your compiled program 
  8. then unless you do this:
  9.  
  10. RM=Exist("RAM:")
  11.  
  12. it may not work. The line of code looks to see if there is already a RAM:
  13. device created, if there is not will do it for you.
  14. Also make sure you have the RAMDISK.DEVICE in DEVS on your boot disk.
  15.  
  16.  
  17. @2
  18. CALLING ALL PRINTERS:
  19. ---------------------
  20. If you program refuses to print out properly you may not have your boot disk
  21. set up correctly. Check you have these files in the correct drawers:
  22.  
  23. DEVS/system-configuration     (set up to use your printer driver)
  24.  
  25. DEVS/printer.device
  26.  
  27. DEVS/parralel.device           (Or serial.device if applicable, doubt it!)
  28.  
  29. DEVS/PRINTERS/your printer driver
  30.  
  31.  
  32. @3
  33. WARNING TO BOB:
  34. --------------
  35. Don't use DEL BOB or DEL SPRITE while you have bobs or sprites still active
  36. as this will often crash Amos.
  37.  
  38.  
  39. @2
  40. ODDLY ENOUGH:
  41. ------------
  42. To interrogate a variable to whether it is an odd or even number use this:
  43.  
  44. X=variable MOD 2
  45. If X=1 Then Print "variable is odd": Else Print "variable is even"
  46.  
  47.  
  48. @1
  49. ADDING TO SUBTRACT:
  50. ------------------
  51. You may have noticed that there is an ADD command in Amos but no SUB command.
  52. This is because you can use the ADD command for subtraction as well as 
  53. addition:
  54.  
  55. ADD variable,amount      ADD amount to the variable
  56.  
  57. ADD variable, -amount    SUBTRACT amount from variable
  58.  
  59.  
  60. @2
  61. IT NEVER RAINS BUT IT POURS:
  62. ----------------------------
  63. To delete a RAINBOW use RAINBOW DEL N
  64. Where N is the number of the previously defined RAINBOW.
  65.  
  66.  
  67. @3
  68. BANK ON IT:
  69. -----------
  70. If during the development of your program you have instructions to LOAD 
  71. bobs, music or whatever then insert this line in first to save a lot of
  72. wasted time loading in files that are already in memory:
  73.  
  74. If Length (Number of bank)=0 Then LOAD...........
  75.  
  76.  
  77. @2
  78. HELPING HAND:
  79. -------------
  80. If you want to detect for the user pressing the help key, then put this in 
  81. the right place(s) of your listing:
  82.  
  83. If Key State (95)
  84. do your thang here
  85. end if
  86.  
  87.  
  88. @1
  89. SPEED COPYING:
  90. -------------
  91. Tip: Only use co-ordinates divisable by 16 when using SCREEN COPY. This 
  92. doubles the speed.
  93.  
  94. @2
  95. CENTRE FORWARD:
  96. --------------
  97. You can't use the CENTRE command on the TEXT instruction, but you can do it
  98. like this:
  99.  
  100. T$="THE TEXT TO BE CENTRED"
  101. A=len(t$)
  102. text screen width/2-(a*8/2),screen height/2,T$
  103.  
  104.  
  105. @3
  106. MORE NUDGES AND WINKS NEXT ISSUE, SEND YOURS IN OR FOREVER BE CONDEMNED TO
  107. A LIFE OF USING AMIGA BASIC.   
  108.